export function joinPath(...paths: string[]): string {
  if (paths.length < 1) return ''
  if (paths.length == 1) return paths[0]
  return paths.reduce((previousValue, currentValue, currentIndex) => {
    if (!previousValue.endsWith('/')) previousValue = previousValue + '/'
    if (currentValue.startsWith('/')) currentValue = currentValue.slice(1)
    return previousValue + currentValue
  })
}
